<?php

require_once './application/controllers/ControllerBase.php';
require_once './application/core/CoreBase.php';
require_once './application/core/Topologie/IndexCore.php';
require_once './application/core/Topologie/topologieCore.php';
require_once './application/core/Topologie/actionCore.php';

///
/// Module de la vue topologie
///
class TopologieController extends ControllerBase
{

    // Action par defaut
    function indexAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new IndexCore($this);
        $core->Execute();
    }

    function lancementAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $core = new TopologieCore($this);
        $core->Lancement();
    }

    function lancementrespAction()
    {
        $this->verifConnexion();
        $this->noRender();
//        $core = new TopologieCore($this);
//        $core->Lancement();
    }

    function changementcomposantmapAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $core = new TopologieCore($this);
        $core->ChangementComposantMap();
    }

    function chargementdetailscomposantmapAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new TopologieCore($this);
        $core->ChargementDetailsComposantMap();
    }

    function chargementinterfacescomposantmapAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new TopologieCore($this);
        $core->ChargementInterfacesComposantMap();
    }

    function chargementactionscomposantmapAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new TopologieCore($this);
        $core->ChargementActionsComposantMap();
    }

    function chargementinterfacesspecifiquesmapAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new TopologieCore($this);
        $core->ChargementInterfacesSpecifiquesMap();
    }

    function chargementtitrecomposantmapAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new TopologieCore($this);
        $core->ChargementTitreComposantMap();
    }

    function actionmoniteurAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $core = new ActionCore($this);
        $core->addmonitor();
    }

}
